package com.ruoyi.web.tdm.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.tdm.mapper.TdmHplcUvDadMapper;
import com.ruoyi.web.tdm.domain.TdmHplcUvDad;
import com.ruoyi.web.tdm.service.ITdmHplcUvDadService;

/**
 * HPLC-UV/DADService业务层处理
 * 
 * @author ly
 * @date 2022-03-11
 */
@Service
public class TdmHplcUvDadServiceImpl implements ITdmHplcUvDadService 
{
    @Autowired
    private TdmHplcUvDadMapper tdmHplcUvDadMapper;

    /**
     * 查询HPLC-UV/DAD
     * 
     * @param id HPLC-UV/DAD主键
     * @return HPLC-UV/DAD
     */
    @Override
    public TdmHplcUvDad selectTdmHplcUvDadById(Long id)
    {
        return tdmHplcUvDadMapper.selectTdmHplcUvDadById(id);
    }

    /**
     * 查询HPLC-UV/DAD列表
     * 
     * @param tdmHplcUvDad HPLC-UV/DAD
     * @return HPLC-UV/DAD
     */
    @Override
    public List<TdmHplcUvDad> selectTdmHplcUvDadList(TdmHplcUvDad tdmHplcUvDad)
    {
        return tdmHplcUvDadMapper.selectTdmHplcUvDadList(tdmHplcUvDad);
    }

    /**
     * 新增HPLC-UV/DAD
     * 
     * @param tdmHplcUvDad HPLC-UV/DAD
     * @return 结果
     */
    @Override
    public int insertTdmHplcUvDad(TdmHplcUvDad tdmHplcUvDad)
    {
        tdmHplcUvDad.setCreateTime(DateUtils.getNowDate());
        return tdmHplcUvDadMapper.insertTdmHplcUvDad(tdmHplcUvDad);
    }

    /**
     * 修改HPLC-UV/DAD
     * 
     * @param tdmHplcUvDad HPLC-UV/DAD
     * @return 结果
     */
    @Override
    public int updateTdmHplcUvDad(TdmHplcUvDad tdmHplcUvDad)
    {
        tdmHplcUvDad.setUpdateTime(DateUtils.getNowDate());
        return tdmHplcUvDadMapper.updateTdmHplcUvDad(tdmHplcUvDad);
    }

    /**
     * 批量删除HPLC-UV/DAD
     * 
     * @param ids 需要删除的HPLC-UV/DAD主键
     * @return 结果
     */
    @Override
    public int deleteTdmHplcUvDadByIds(Long[] ids)
    {
        return tdmHplcUvDadMapper.deleteTdmHplcUvDadByIds(ids);
    }

    /**
     * 删除HPLC-UV/DAD信息
     * 
     * @param id HPLC-UV/DAD主键
     * @return 结果
     */
    @Override
    public int deleteTdmHplcUvDadById(Long id)
    {
        return tdmHplcUvDadMapper.deleteTdmHplcUvDadById(id);
    }
}
